/**
 * Created by IntelliJ IDEA.
 * User: user
 * Date: 11.07.12
 * Time: 16:43
 * To change this template use File | Settings | File Templates.
 */
package zakladki.AS3.widok {
public class BathViewChangeListener {

    private var bathContentPane:MC1;

    public function BathViewChangeListener(Laz:MC1) {
        this.bathContentPane = Laz;
    }

    public function setBathVolume(index:int):void {
        if (index == 9) {
            bathContentPane.wannaDuza.visible = true;
            bathContentPane.wannaDuzaDuzo.visible = true;
            bathContentPane.wannaDuzaMalo.visible = false;
            bathContentPane.wannaDuzaMalo2.visible = false;
            bathContentPane.wannaDuzaSrednia.visible = false;
            bathContentPane.wannaMalaDuza.visible = false;
            bathContentPane.wannaMalaMalo.visible = false;
            bathContentPane.wannaMalaMalo2.visible = false;
            bathContentPane.wannaMalaSrednio.visible = false;
        }
        else {
            bathContentPane.WannaZmiana(index);
        }
    }

    public function acEnabled(temp:int, when:int, length:int):void {
        bathContentPane.KlimatyzacjaTrue(temp, when, length);
    }

    public function acDisabled():void {
        bathContentPane.KlimatyzacjaFalse();
    }

    public function bathCounter(bathNumber:int):void {
        bathContentPane.LicznikWannowy(bathNumber);
    }

    public function showerCounter(showerNumber:int):void {
        bathContentPane.LicznikPrysznicowy(showerNumber);
    }

    public function acTemp(temp:int):void {
        bathContentPane.KlimatyzacjaTemperatura(temp);
    }

    public function acFrequency(kiedy:int):void {
        bathContentPane.KlimatyzacjaKiedy(kiedy);
    }

    public function acDuration(dlugosc:int):void {
        bathContentPane.KlimatyzacjaDlugosc(dlugosc);
    }


}
}
